package com.pet.pet.utlis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 发请求的时候携带的参数，可以用这个类，
 *
 * 1.例子：
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class URLParam {
    private String k;
    private String v;

    public static void main(String[] args) {
//        1.
        URLParam[] urlParams =
        {
                new URLParam("name","张三"),
                new URLParam("age","19"),
        };
//        2.
        URLParam urlParam = new URLParam();
        urlParam.setK("name");
        urlParam.setV("张三");
        URLParam urlParam1 = new URLParam();
        urlParam1.setK("age");
        urlParam1.setV("19");
        URLParam[] urlParams1 = {urlParam,urlParam1};
    }
}
